package first.niuke.simple;

/**
 * @ClassName NC71
 * @description:
 * @author: 荣燊
 * @create: 2021-06-14 15:51
 **/
public class NC71 {
    // 旋转数组的最小数字
    public static void main(String[] args) {

    }

    public int minNumberInRotateArray(int [] array) {
        if (array.length == 0) {
            return 0;
        }
        int temp = 0;
        for (int i=1; i<array.length; i++) {
            if (array[i] < array[i-1]) {
                temp = array[i];
            }
        }
        return temp;

    }
}
